package org.polyforms.repository.spi;

/**
 * Helper for entity which are persisted by JPA framework.
 * 
 * @author Kuisong Tong
 * @since 1.0
 */
public interface EntityHelper {
    /**
     * Check specific class whether it is an entity class.
     */
    boolean isEntity(Class<?> candidate);

    /**
     * Check specific entity whether it is detached.
     */
    boolean isDetached(Object entity);
}
